package com.example.gokchinesefoodmappcdev.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.gokchinesefoodmappcdev.entity.CustomerInfo;
import com.example.gokchinesefoodmappcdev.entity.MerchantInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MerchantInfoDao extends BaseMapper<MerchantInfo> {
    /**
     * 分页查询
     * 根据条件查询商户管理列表
     * @param merchantInfo
     * @return
     */
    List<MerchantInfo> findAllMerchanInfo(MerchantInfo merchantInfo);

    /**
     * 根据条件查询所有用户数
     * @param merchantInfo
     * @return
     */
    int countMerchanInfoNum(MerchantInfo merchantInfo);

}
